<? $params = $this->Paginator->params(); ?>

<? if($params['count'] > $params['limit']): ?>
<div class="pagination">
        <span class="first" title="Prva strana"><?= $this->Paginator->first("&laquo;", array('escape'=>false)) ?></span>
        
        <div class="numbers">
            <? 
                // consider groupKey
                if (! empty($this->params['groupKey'])) {
                    $groupKey = $this->params['groupKey'];
                    $this->Paginator->url = '/' . $groupKey;
                }
            ?>
        
            <?= $this->Paginator->numbers(array(
                'modulus' => 7,
                'separator' => ''
            )) ?>
        </div>
        
        <span class="last" title="Poslednja strana"><?= $this->Paginator->last("&raquo;", array('escape'=>false)) ?></span>
</div>
<? endif; ?>